package com.kakarote.examine.mapper;

import com.kakarote.core.entity.BasePage;
import com.kakarote.core.servlet.BaseMapper;
import com.kakarote.examine.entity.BO.SuperExamineReportSearchBO;
import com.kakarote.examine.entity.BO.SuperExamineReportSubSearchBO;
import com.kakarote.examine.entity.PO.ExamineRecord;
import com.kakarote.examine.entity.VO.ExamineVO;
import com.kakarote.examine.entity.VO.SuperExamineReportHeadVO;
import com.kakarote.examine.entity.VO.SuperExamineReportListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 审核记录表 Mapper 接口
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-11-19
 */
public interface ExamineRecordMapper extends BaseMapper<ExamineRecord> {

    BasePage<SuperExamineReportListVO> getSuperExamineReportList(BasePage<Object> parse, @Param("searchBO") SuperExamineReportSearchBO searchBO);

    List<SuperExamineReportHeadVO> getExamineReportInfo(@Param("searchBO") SuperExamineReportSearchBO searchBO);

    List<ExamineVO> queryRecentlyUsedExamineList(@Param("isAdmin") Boolean isAdmin, @Param("userId") Long userId, @Param("deptId") Long deptId, @Param("deptIds") List<Long> deptIds);

    BasePage<ExamineRecord> getExamineReportSubList(BasePage<Object> parse, SuperExamineReportSubSearchBO searchBO);

}
